package com.stackfarm.fvcommon.utils;


import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

public class EncryptDecryptUtil {
    public static String md5(String password,String salt){
        ByteSource sal = ByteSource.Util.bytes(salt);
        int hashIterations = 1024;
        SimpleHash hash = new SimpleHash("md5",password, sal, hashIterations);
        return hash.toString();
    }
}
